<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片详情 - 排球队</title>
    <link rel="stylesheet" href="../../../css/style.css">
    <style>
        .image-container {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }
        
        .image-gallery {
            position: relative;
            margin-bottom: 30px;
        }
        
        .main-image {
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .thumbnail-container {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 10px 0;
        }
        
        .thumbnail {
            width: 100px;
            height: 70px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.3s ease;
        }
        
        .thumbnail.active {
            border-color: #667eea;
        }
        
        .image-info {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .image-title {
            font-size: 2rem;
            color: #333;
            margin-bottom: 15px;
        }
        
        .image-meta {
            color: #666;
            margin-bottom: 20px;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .image-description {
            line-height: 1.8;
            color: #555;
            margin-bottom: 30px;
        }
        
        .image-details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .detail-item {
            display: flex;
            margin-bottom: 10px;
        }
        
        .detail-label {
            font-weight: bold;
            width: 100px;
            color: #333;
        }
        
        .detail-value {
            color: #666;
        }
        
        .back-button {
            display: inline-block;
            background: #667eea;
            color: white;
            padding: 12px 25px;
            text-decoration: none;
            border-radius: 8px;
            margin-bottom: 20px;
            transition: background 0.3s ease;
        }
        
        .back-button:hover {
            background: #5a6fd8;
        }
        
        .fullscreen-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0,0,0,0.7);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.2rem;
        }
        
        .fullscreen-btn:hover {
            background: rgba(0,0,0,0.9);
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
        }
        
        .modal-content {
            margin: auto;
            display: block;
            width: 90%;
            max-width: 1200px;
            height: 90%;
            object-fit: contain;
        }
        
        .close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close:hover {
            color: #bbb;
        }
    </style>
</head>
<body>
    <header>
        <nav class="navbar">
            <div class="nav-container">
                <div class="nav-logo">
                    <h2>排球队管理系统</h2>
                </div>
                <ul class="nav-menu">
                    <li><a href="../index/index.html">首页</a></li>
                    <li><a href="../about/about.html">球队介绍</a></li>
                    <li><a href="../players/list.html">队员信息</a></li>
                    <li><a href="../matches/matches.html">比赛管理</a></li>
                    <li><a href="../training/training.html">训练安排</a></li>
                    <li><a href="../knowledge/index.html">排球知识</a></li>
                </ul>
            </div>
        </nav>
    </header>

    <main>
        <div class="image-container">
            <a href="../index/index.html" class="back-button">← 返回首页</a>
            
            <!-- 图片展示区域 -->
            <div class="image-gallery">
                <img id="mainImage" src="https://via.placeholder.com/1200x800/667eea/ffffff?text=比赛精彩瞬间" alt="比赛精彩瞬间" class="main-image">
                <button class="fullscreen-btn" onclick="openFullscreen()">🔍</button>
                
                <div class="thumbnail-container">
                    <img src="https://via.placeholder.com/100x70/667eea/ffffff?text=1" alt="图片1" class="thumbnail active" onclick="changeImage(this, 'https://via.placeholder.com/1200x800/667eea/ffffff?text=比赛精彩瞬间')">
                    <img src="https://via.placeholder.com/100x70/764ba2/ffffff?text=2" alt="图片2" class="thumbnail" onclick="changeImage(this, 'https://via.placeholder.com/1200x800/764ba2/ffffff?text=训练日常')">
                    <img src="https://via.placeholder.com/100x70/667eea/ffffff?text=3" alt="图片3" class="thumbnail" onclick="changeImage(this, 'https://via.placeholder.com/1200x800/667eea/ffffff?text=团队合影')">
                    <img src="https://via.placeholder.com/100x70/764ba2/ffffff?text=4" alt="图片4" class="thumbnail" onclick="changeImage(this, 'https://via.placeholder.com/1200x800/764ba2/ffffff?text=颁奖典礼')">
                    <img src="https://via.placeholder.com/100x70/667eea/ffffff?text=5" alt="图片5" class="thumbnail" onclick="changeImage(this, 'https://via.placeholder.com/1200x800/667eea/ffffff?text=赛后庆祝')">
                </div>
            </div>
            
            <!-- 图片信息 -->
            <div class="image-info">
                <h1 class="image-title">2024年春季联赛精彩瞬间集锦</h1>
                <div class="image-meta">
                    <span>拍摄时间: 2024年1月15日</span>
                    <span>拍摄地点: 市体育馆</span>
                    <span>摄影师: 李摄影师</span>
                    <span>图片数量: 5张</span>
                </div>
                <div class="image-description">
                    <p>这组照片记录了我们在2024年春季联赛中的精彩表现。从赛前的紧张准备，到比赛中的激烈对抗，再到赛后的喜悦庆祝，每一张照片都承载着我们的汗水和努力。</p>
                    <p>照片展现了：</p>
                    <ul>
                        <li>队员们在比赛中的专注和拼搏精神</li>
                        <li>团队配合的默契和战术执行</li>
                        <li>教练在场边的指导和鼓励</li>
                        <li>观众的热情支持和欢呼</li>
                        <li>胜利后的喜悦和团队庆祝</li>
                    </ul>
                    <p>这些珍贵的瞬间将永远铭记在我们的心中，激励我们在未来的比赛中继续努力，追求更高的目标！</p>
                </div>
                
                <div class="image-details">
                    <h3>图片详情</h3>
                    <div class="detail-item">
                        <span class="detail-label">比赛名称:</span>
                        <span class="detail-value">2024年春季排球联赛</span>
                    </div>
                    <div class="detail-item">
                        <span class="detail-label">比赛对手:</span>
                        <span class="detail-value">市一中排球队</span>
                    </div>
                    <div class="detail-item">
                        <span class="detail-label">比赛结果:</span>
                        <span class="detail-value">3:1 胜利</span>
                    </div>
                    <div class="detail-item">
                        <span class="detail-label">关键球员:</span>
                        <span class="detail-value">王队长、李主攻、张二传</span>
                    </div>
                    <div class="detail-item">
                        <span class="detail-label">技术统计:</span>
                        <span class="detail-value">扣球成功率 65%，拦网得分 8分</span>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 全屏模态框 -->
    <div id="fullscreenModal" class="modal">
        <span class="close" onclick="closeFullscreen()">&times;</span>
        <img class="modal-content" id="fullscreenImage">
    </div>

    <footer>
        <div class="footer-content">
            <p>&copy; 2024 排球队管理系统. 保留所有权利.</p>
        </div>
    </footer>

    <script>
        function changeImage(thumbnail, imageSrc) {
            // 更新主图片
            document.getElementById('mainImage').src = imageSrc;
            document.getElementById('fullscreenImage').src = imageSrc;
            
            // 更新缩略图状态
            document.querySelectorAll('.thumbnail').forEach(thumb => {
                thumb.classList.remove('active');
            });
            thumbnail.classList.add('active');
        }
        
        function openFullscreen() {
            const modal = document.getElementById('fullscreenModal');
            const fullscreenImage = document.getElementById('fullscreenImage');
            fullscreenImage.src = document.getElementById('mainImage').src;
            modal.style.display = 'block';
        }
        
        function closeFullscreen() {
            document.getElementById('fullscreenModal').style.display = 'none';
        }
        
        // 点击模态框外部关闭
        window.onclick = function(event) {
            const modal = document.getElementById('fullscreenModal');
            if (event.target == modal) {
                modal.style.display = 'none';
            }
        }
        
        // 键盘ESC键关闭全屏
        document.addEventListener('keydown', function(event) {
            if (event.key === 'Escape') {
                closeFullscreen();
            }
        });
    </script>
</body>
</html> 